<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>选择器计算面试题解析</title>
    <style>
        /* 
        ul 继承父元素
        li Sausage
        */
        ul {color: red;}
        #must-buy {color: blue;}
    </style>
</head>

<body>
    <ul class="shopping-list" id="awesome">
        <li><span>Milk</span></li>
        <li class="favorite" id="must-buy"><span class="highlight">Sausage</span></li>
    </ul>
</body>

</html>